package com.love.marriage.commissionInfo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.love.marriage.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * description:  佣金表类
 * author:       mybatisPlus
 * createDate: 2024-10-28 19:07:46
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("commission_info_t")
@Schema(description = "佣金表")
public class CommissionInfo extends BaseEntity<CommissionInfo>{

    @Schema(description = "用户ID，关联到用户表", type = "Long", implementation = Long.class)
    @TableField("user_id")
    private Long userId;

    @Schema(description = "推荐人ID，关联到用户表", type = "Long", implementation = Long.class)
    @TableField("referrer_id")
    private Long referrerId;

    @Schema(description = "佣金金额", type = "BigDecimal", implementation = BigDecimal.class)
    @TableField("amount")
    private BigDecimal amount;

    @Schema(description = "佣金状态，0: 待支付, 1: 已支付, 2: 取消", type = "Integer", implementation = Integer.class)
    @TableField("`status`")
    private Integer status;

    @Schema(description = "订单id", type = "Long", implementation = Long.class)
    @TableField("order_id")
    private Long orderId;

    @Schema(description = "佣金来源：'partner':合伙人，'recharge_amount'：消费现金", type = "String", implementation = String.class)
    @TableField("commission_type")
    private String commissionType;
}
